package com.jingdianjichi.oss.adapter;

import com.jingdianjichi.oss.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

/**
 * @Author xf
 * @Aate 2024/3/4 下午 10:34
 * @Version v1.0.0
 * @Description : TODO: oss适配器
 */
public interface StorageAdapter {


    void createBucket(String bucket);


    void uploadFile(MultipartFile uploadFile, String bucket, String objectName);


    List<String> getAllBucket();


    List<FileInfo> getAllFile(String bucket);


    InputStream download(String bucket, String objectName);


    void deleteBucket(String bucket);


    void deleteObject(String bucket, String objectName);

}